﻿using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            text01();
            text02();
            text03();
        }


        static void text01()
        {
            Console.WriteLine("请输入半径的值：");
            double r = double.Parse(Console.ReadLine());
            double a = 3.14;
            double s = r * r * a;
            Console.WriteLine("圆面积为：" + s);
        }
        static void text02()
        {
            Console.WriteLine("请输入四位数的值：");
            int s = int.Parse(Console.ReadLine());
            int a = s % 10;
            int b = (s % 100)/10;
            int c = (s % 1000)/100;
            int d = s /1000;
            Console.WriteLine("用户输入的千位为:"+d+" "+"百位为:"+c+" "+"十位为:"+b+" "+"个位为:"+a);
        }
        static void text03()
        {
            Console.WriteLine("请输入第一位数的值：");
            int a = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二位数的值：");
            int b = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第三位数的值：");
            int c = int.Parse(Console.ReadLine());
            if(a>b)
            {
                if (a > c) {
                    Console.WriteLine("最大值为："+a);
                }
            }
            if (a < b)
            {
                if (c < b) {
                    Console.WriteLine("最大值为：" + b);
                } 
            }
            if (a < c)
            {
                if (b < c) {
                    Console.WriteLine("最大值为：" + c);
                }
            }

        }
    }
}
